package com.dinghui.mybatis.pojo;

import java.io.Serializable;

public class Users implements Serializable{

	private Integer id;//主键id
	private String name;//用户名
	private String login_code;//登录名
	private String pass_word;//登录密码
	private Integer role_id;//类型id
	private String phone;//联系电话
	private String email;//邮箱
	private String photo;//头像
	private Integer XXDM;//学校代码
	private String XXMC;//学校名称
	private String register_time;//注册时间
	private String memo;//备注
	private Integer state;//状态
	private String sex;//性别
	private String id_number;//身份证号
	private String frontImage;
	private String oppositeImage;
	private String address;
	private String roleName;//角色名称



	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public Integer getXXDM() {
		return XXDM;
	}
	public void setXXDM(Integer xXDM) {
		XXDM = xXDM;
	}
	public String getXXMC() {
		return XXMC;
	}
	public void setXXMC(String xXMC) {
		XXMC = xXMC;
	}
	public void setRegister_time(String register_time) {
		this.register_time = register_time;
	}

	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getId_number() {
		return id_number;
	}
	public void setId_number(String id_number) {
		this.id_number = id_number;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLogin_code() {
		return login_code;
	}
	public void setLogin_code(String login_code) {
		this.login_code = login_code;
	}
	public String getPass_word() {
		return pass_word;
	}
	public void setPass_word(String pass_word) {
		this.pass_word = pass_word;
	}
	public Integer getRole_id() {
		return role_id;
	}
	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getRegister_time() {
		return register_time;
	}
	/*public void setRegister_time(Date register_time) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		if (register_time!=null) {
			this.register_time = sdf.format(register_time);
		}else{
			this.register_time = null;
		}
	}*/
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getFrontImage() {
		return frontImage;
	}
	public void setFrontImage(String frontImage) {
		this.frontImage = frontImage;
	}
	public String getOppositeImage() {
		return oppositeImage;
	}
	public void setOppositeImage(String oppositeImage) {
		this.oppositeImage = oppositeImage;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Override
	public String toString() {
		return "Users [id=" + id + ", name=" + name + ", login_code=" + login_code + ", pass_word=" + pass_word
				+ ", role_id=" + role_id + ", phone=" + phone + ", email=" + email + ", photo=" + photo + ", XXDM="
				+ XXDM + ", XXMC=" + XXMC + ", register_time=" + register_time + ", memo=" + memo + ", state=" + state
				+ ", sex=" + sex + ", id_number=" + id_number + ", frontImage=" + frontImage + ", oppositeImage="
				+ oppositeImage + ", address=" + address + ", roleName=" + roleName + "]";
	}


}
